<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人主页-<?=_get_config('sitename')?></title>
<?php include_once(VIEWPATH."public/header_title.php");?>
<link href="<?php echo _get_cfg_path('css')?>base.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('css')?>common.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('lib')?>uploadify/uploadify.css" type="text/css" rel="stylesheet" />
<!--[if IE 6]>
<script src="<?php echo _get_cfg_path('js')?>DD_belatedPNG.js" type="text/javascript" ></script>
<script>DD_belatedPNG.fix('a,img');</script>
<![endif]-->
<style>#container{position:relative;width:100%;}.grid{width:540px;min-height:100px;float:left;}</style>
</head>
<body>
<?php include_once(VIEWPATH."public/header.php");?>
<div class="mainbody" id="mainbody">
	<div class="introd container">  
    <?php include_once(VIEWPATH."i/public/top.php");?>
    <div class="personal mrgB30">
            <div class="title">基本信息</div>
            <ul class="clearfix bainfo">
            	<li><span>姓名</span> <?=$oUser['nickname']?></li>
            </ul>
            <br /><br /><br />
            <div class="title">个人简介</div>
            <div class="clearfix">
            	<div class="fl flpet">
                    <div class="per_con">
                        <!--<h3 class="p_bti"><i></i>个人介绍</h3>-->
                        <div class="p_wzi"> 
                        	<?php echo empty($oUser['brand']) ? '' : htmlspecialchars_decode($oUser['brand'])?>
                        <br />
                        <br />
                        <?php if (in_array($oUser['usertype'], array(4,5))):?>
                        	 <?php if ($oUser['insid']&&$ins_user&&($ins_user['com_short']||$ins_user['nickname'])):?>
	                        	<a class="ins_artists" target="_blank" href="/i/index/<?=$ins_user['userid']?>"><?=$ins_user['com_short']?$ins_user['com_short']:$ins_user['nickname']?></a>签约<?=$oUser['usertype']==4?'摄影师':'化妆师'?>
	                        <?php endif;?>
                        <?php endif;?>
                        </div>
                    </div>
                </div>
                <?php if ($oUser['video']):?>
	                <div>
		                <?php if (strstr($oUser['video'], 'tudou.com') || strstr($oUser['video'], 'youku.com') || strstr($oUser['video'], 'ku6.com') || strstr($oUser['video'], '56.com')):?>
		                	<div style="height:400px;">
		                	<embed src="<?=_getVedioSwf($oUser['video'])?>" quality="high" width="480" height="500" align="middle" allowScriptAccess="always" allowFullScreen="true" mode="transparent" type="application/x-shockwave-flash"></embed>
		                	</div>
		                <?php else :?>
		                	<?php if (strpos($_SERVER["HTTP_USER_AGENT"],"Trident")):?>
				                <div class="fr p_video" style="width:400px;height:300px">
					                <object id="MediaPlayer" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="400" height="600" standby="Loading Windows Media Player components…" type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
									<param name="FileName" value="<?php echo $oUser['video'];?>">
									<param name="AutoStart" value="false">
									<param name="ShowControls" value="true">
									<param name="BufferingTime" value="2">
									<param name="ShowStatusBar" value="true">
									<param name="AutoSize" value="true">
									<param name="InvokeURLs" value="false">
									<param name="AnimationatStart" value="1">
									<param name="TransparentatStart" value="1">
									<param name="Loop" value="1">
									<embed type="application/x-mplayer2" src="<?php echo $oUser['video'];?>" name="MediaPlayer" autostart="1" showstatusbar="1" showdisplay="1" showcontrols="1" loop="0" videoborder3d="0" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" width="800" height="600"></embed>
									</object>
								</div>
							<?php elseif (strstr($oUser['video'], '.mp4')) :?>
								<video src="<?=$oUser['video']?>"  width="400" height="300" controls="controls" style="background:black;margin-top:20px;">
									<source src="<?=$oUser['video']?>" type="video/avi">
									Your browser does not support the video tag.
								</video>
							<?php elseif (strstr($oUser['video'], '.avi')):?>
								<iframe height=10 width=500 style="margin-top:10px;" src="<?php echo $oUser['video'];?>" frameborder=0 allowfullscreen></iframe>
							<?php endif;?>
		                <?php endif;?>
	                </div>
                <?php endif;?>
            </div>
            <br /><br /><br />
            <div class="title">工作说明</div>
            <div class="per_con">
                <!--<h3 class="p_bti"><i></i>工作说明</h3>-->
                <div class="p_wzi"><?=!empty($oUser['fee'])?html_entity_decode($oUser['fee']):''?><br /></div>
            </div>
<!--            <div class="per_con">
                <h3 class="p_bti"><i></i>工作时间</h3>
                <div class="p_wzi"><?=$oUser['servicetime']?></div>
            </div>
            <div class="per_con">
                <h3 class="p_bti"><i></i>工作说明</h3>
                <div class="p_wzi"><?=$oUser['takenote']?></div>
            </div>-->
            <br /><br />
            <div class="title">精选作品</div>
            <div class="malbumdeta" id="container">
                <?php foreach ($oGood as $key => $a): ?>
                <div class="grid"><img src="<?=$a['img']?>"/></div>
                <?php endforeach;?>
            </div>
        </div>
    </div>
</div>
<!--mainbody-->
<?php include_once(VIEWPATH."public/footer.php");?>
</body>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>common.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>main.js"></script>
<!--<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>waterfall.js"></script>-->
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>blocksit.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    //blocksit define
    $(window).load( function() {
        $('#container').BlocksIt({
            numOfCol: 2,
            offsetX: 6,
            offsetY: 6
        });
    });
    
    //window resize
    var currentWidth = 1100;
    $(window).resize(function() {
        var winWidth = $(window).width();
        var conWidth;
        if(winWidth < 660) {
            conWidth = 440;
            col = 2
        } else if(winWidth < 880) {
            conWidth = 660;
            col = 3
        } else if(winWidth < 1100) {
            conWidth = 880;
            col = 4;
        } else {
            conWidth = 1100;
            col = 5;
        }
        
        if(conWidth != currentWidth) {
            currentWidth = conWidth;
            $('#container').width(conWidth);
            $('#container').BlocksIt({
                numOfCol: col,
                offsetX: 6,
                offsetY: 6
            });
        }
    });
});
</script>
</html>